var recruitSvc = require("../../services/recruitSvc");
var happyiSvc = require("../../services/happyiSvc");
//乐i首页
exports.index = function (req, res) {
    res.render("happyi/index");
};
//乐i首页数据
exports.myData = function (req, res) {
    happyiSvc.myData(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//编辑个人资料
exports.userEdit = function (req, res) {
    res.render("happyi/userEdit");
};
//编辑教育经历
exports.educationEdit = function (req, res) {
    res.render("happyi/educationEdit");
};
//获取个人信息
exports.getUserInfo = function (req, res) {
    recruitSvc.getUserInfo(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//修改个人信息
exports.updateUserData = function (req, res) {
    recruitSvc.updateUserData(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我的视频
exports.myVideo = function (req, res) {
    res.render("happyi/myVideo");
};
//我的视频分类
exports.myVideoCategory = function (req, res) {
    happyiSvc.myVideoCategory(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            // res.render("happyi/myVideo",{data:b.body,title:"视频"});
            res.send(b.body);
        }
    });
};
//我的视频列表
exports.myVideoList = function (req, res) {
    happyiSvc.myVideoList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我的游记
exports.myTravels = function (req, res) {
    happyiSvc.myTravels(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我的收藏分类
exports.myCollectionCategory = function (req, res) {
    happyiSvc.myCollectionCategory(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我的收藏列表
exports.myCollection = function (req, res) {
    happyiSvc.myCollection(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我的点赞分类
exports.myPraiseCategory = function (req, res) {
    happyiSvc.myPraiseCategory(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我的点赞列表
exports.myPraise = function (req, res) {
    happyiSvc.myPraise(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我的粉丝（关注）
exports.myFans = function (req, res) {
    res.render("happyi/myFans");
};
//我的粉丝列表
exports.myFansList = function (req, res) {
    happyiSvc.myFansList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我关注的人
exports.myFollows = function (req, res) {
    happyiSvc.myFollows(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我关注的企业
exports.myFollowsEnterprise = function (req, res) {
    happyiSvc.myFollowsEnterprise(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我的应聘
exports.myApply = function (req, res) {
    res.render("happyi/myApply");
};
//我的应聘信息
exports.myApplyInfo = function (req, res) {
    happyiSvc.myApplyInfo(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我的投递
exports.myDelivery = function (req, res) {
    res.render("happyi/myDelivery");
};
//我的投递列表
exports.myDeliveryList = function (req, res) {
    happyiSvc.myDeliveryList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//简历预览
exports.resumePreview = function (req, res) {
    res.render("happyi/resumePreview");
};
//我的简历预览
exports.myResumePreview = function (req, res) {
    happyiSvc.myResumePreview(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//简历刷新
exports.refreshResume = function (req, res) {
    happyiSvc.refreshResume(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//简历不符
exports.notGoodResume = function (req, res) {
    happyiSvc.notGoodResume(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//简历收藏
exports.resumeCollection = function (req, res) {
    happyiSvc.resumeCollection(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//企业招聘
exports.companyRecruit = function (req, res) {
    res.render("happyi/companyRecruit");
};
//选择发布招聘
exports.choiceRecruit = function (req, res) {
    happyiSvc.choiceRecruit(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//企业招聘信息
exports.myRecruit = function (req, res) {
    happyiSvc.myRecruit(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//企业招聘-推荐
exports.myRecruitRecommend = function (req, res) {
    happyiSvc.myRecruitRecommend(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//人才搜索列表
exports.getUserResumeList = function (req, res) {
    happyiSvc.getUserResumeList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//图片附件（观看视频）
exports.previewInfo = function (req, res) {
    res.render("happyi/previewInfo");
};
//职位管理
exports.jobAdmin = function (req, res) {
    res.render("happyi/jobAdmin");
};
//职位上线列表
exports.getRecruitByUserId = function (req, res) {
    happyiSvc.getRecruitByUserId(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//职位下线列表
exports.getRecruitDownByUserId = function (req, res) {
    happyiSvc.getRecruitDownByUserId(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//职位删除
exports.deleteRecruitById = function (req, res) {
    happyiSvc.deleteRecruitById(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//刷新职位
exports.updateRecruitById = function (req, res) {
    happyiSvc.updateRecruitById(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//职位上线
exports.upRecruitById = function (req, res) {
    happyiSvc.upRecruitById(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//发布职位(编辑)
exports.editJob = function (req, res) {
    res.render("happyi/editJob");
};
//获取企业职位信息
exports.getEnterpriseRecruitListById = function (req, res) {
    happyiSvc.getEnterpriseRecruitListById(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//保存企业职位信息
exports.updateRecruitPositionDetailInfo = function (req, res) {
    happyiSvc.updateRecruitPositionDetailInfo(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//候选人
exports.candidate = function (req, res) {
    res.render("happyi/candidate");
};
//候选人列表
exports.myCandidate = function (req, res) {
    happyiSvc.myCandidate(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我的售卖
exports.mySell = function (req, res) {
    res.render("happyi/mySell");
};
//我的售卖
exports.myseller = function (req, res) {
    happyiSvc.myseller(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我的商品
exports.myCommodity = function (req, res) {
    res.render("happyi/myCommodity");
};
//出售中商品列表
exports.myUpperProduct = function (req, res) {
    happyiSvc.myUpperProduct(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//已下架商品列表
exports.myLowerProduct = function (req, res) {
    happyiSvc.myLowerProduct(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//商品上下架
exports.upperLowerProduct = function (req, res) {
    happyiSvc.upperLowerProduct(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//商品搜索
exports.commoditySearch = function (req, res) {
    res.render("happyi/commoditySearch");
};
//搜索商品列表
exports.myAllProduct = function (req, res) {
    happyiSvc.myAllProduct(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//订单搜索
exports.sellerorderList = function (req, res) {
    happyiSvc.sellerorderList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//个人商品详情
exports.getMediaProductById = function (req, res) {
    happyiSvc.getMediaProductById(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//删除商品图片
exports.deleteProductByImgId = function (req, res) {
    happyiSvc.deleteProductByImgId(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//修改商品不带图片的
exports.updateProduct = function (req, res) {
    happyiSvc.updateProduct(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//删除sku
exports.deleteSku = function (req, res) {
    happyiSvc.deleteSku(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//删除商品
exports.deleteProduct = function (req, res) {
    happyiSvc.deleteProduct(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//订单管理
exports.orderAdmin = function (req, res) {
    res.render("happyi/orderAdmin");
};
//订单头部
exports.sellerorderListHeader = function (req, res) {
    happyiSvc.sellerorderListHeader(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//订单列表
exports.sellerorderListByState = function (req, res) {
    happyiSvc.sellerorderListByState(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//订单详情
exports.orderInfo = function (req, res) {
    res.render("happyi/orderInfo");
};
//售后退货列表
exports.mysellAfterSale = function (req, res) {
    happyiSvc.mysellAfterSale(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//发货
exports.deliverGoods = function (req, res) {
    res.render("happyi/deliverGoods");
};
//快递公司
exports.expresList = function (req, res) {
    happyiSvc.expresList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//发货
exports.sellerOrderDeliver = function (req, res) {
    happyiSvc.sellerOrderDeliver(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//关闭订单
exports.sellerupdatecloseorder = function (req, res) {
    happyiSvc.sellerupdatecloseorder(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//修改价格
exports.modifyPrice = function (req, res) {
    res.render("happyi/modifyPrice");
};
//修改订单价格
exports.sellerupdateorderprice = function (req, res) {
    happyiSvc.sellerupdateorderprice(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//退款/售后
exports.refundInfo = function (req, res) {
    res.render("happyi/refundInfo");
};
//订单售后进度
exports.orderAfterSale = function (req, res) {
    happyiSvc.orderAfterSale(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//同意退款
exports.sellerApprovalOrder = function (req, res) {
    happyiSvc.sellerApprovalOrder(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//拒绝退款
exports.refuseRefund = function (req, res) {
    res.render("happyi/refuseRefund");
};
//拒绝退款(不带图片)
exports.sellerRefuseOrderNotImg = function (req, res) {
    happyiSvc.sellerRefuseOrderNotImg(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//同意退货
exports.agreeReturnGoods = function (req, res) {
    happyiSvc.agreeReturnGoods(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//修改订单地址
exports.sellerOrderAddress = function (req, res) {
    happyiSvc.sellerOrderAddress(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//用户退货地址
exports.getUserReturnAddressList = function (req, res) {
    happyiSvc.getUserReturnAddressList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//增加或者修改用户退货地址
exports.addUserReturnAddress = function (req, res) {
    happyiSvc.addUserReturnAddress(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//退款/售后
exports.refundAfterSale = function (req, res) {
    res.render("happyi/refundAfterSale");
};
//售后退货
exports.myAfterSale = function (req, res) {
    happyiSvc.myAfterSale(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我的钱包
exports.myWallet = function (req, res) {
    res.render("happyi/myWallet");
};
//我的钱包
exports.myWalletInfo = function (req, res) {
    happyiSvc.myWalletInfo(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我的钱包-明细
exports.walletDetailed = function (req, res) {
    res.render("happyi/walletDetailed");
};
//我的钱包-明细列表
exports.myWalletLog = function (req, res) {
    happyiSvc.myWalletLog(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我的钱包-明细信息
exports.detailedInfo = function (req, res) {
    res.render("happyi/detailedInfo");
};
//我的钱包-明细详情
exports.myWalletLogDetails = function (req, res) {
    happyiSvc.myWalletLogDetails(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//收入资产
exports.incomeAssets = function (req, res) {
    res.render("happyi/incomeAssets");
};
//收入资产-明细
exports.incomeDetails = function (req, res) {
    res.render("happyi/incomeDetails");
};
//订单流水
exports.sellerorderFlow = function (req, res) {
    happyiSvc.sellerorderFlow(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//收入资产-交易
exports.transaction = function (req, res) {
    res.render("happyi/transaction");
};
//收入资产-结算中
exports.sellerorderListBySettlement = function (req, res) {
    happyiSvc.sellerorderListBySettlement(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//收入资产-交易中
exports.sellerorderListByTransaction = function (req, res) {
    happyiSvc.sellerorderListByTransaction(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//收入资产-我的收入报表
exports.myIncome = function (req, res) {
    happyiSvc.myIncome(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我的优惠券
exports.myCoupon = function (req, res) {
    res.render("happyi/myCoupon");
};
//我的优惠券列表
exports.getMyCoupon = function (req, res) {
    happyiSvc.getMyCoupon(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//我的新人资格优惠券
exports.myQualificationCoupon = function (req, res) {
    happyiSvc.myQualificationCoupon(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//删除优惠券
exports.deleteCoupon = function (req, res) {
    happyiSvc.deleteCoupon(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//拼团
exports.collage = function (req, res) {
    res.render("happyi/collage");
};
//拼团列表
exports.getCollageList = function (req, res) {
    happyiSvc.getCollageList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//设置
exports.setUp = function (req, res) {
    res.render("happyi/setUp");
};
//设置-账号安全
exports.security = function (req, res) {
    res.render("happyi/security");
};
//通过id获取账户信息
exports.getUserInfoById = function (req, res) {
    happyiSvc.getUserInfoById(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//设置-密码
exports.setUpPwd = function (req, res) {
    res.render("happyi/setUpPwd");
};
//取消关注
exports.followDelete = function (req, res) {
    happyiSvc.followDelete(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//设置-更换电话
exports.replaceTel = function (req, res) {
    res.render("happyi/replaceTel");
};
//设置-修改手机号码短信
exports.updateregistermessage = function (req, res) {
    happyiSvc.updateregistermessage(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//设置-修改手机号码
exports.updateMobile = function (req, res) {
    happyiSvc.updateMobile(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//设置-手机号码
exports.setUserMobile = function (req, res) {
    happyiSvc.setUserMobile(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//设置-隐私设置
exports.privacySetup = function (req, res) {
    res.render("happyi/privacySetup");
};
//设置-黑名单管理
exports.blacklist = function (req, res) {
    res.render("happyi/blacklist");
};
//设置-黑名单列表
exports.getBlackList = function (req, res) {
    happyiSvc.getBlackList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//设置-删除黑名单
exports.removeBlack = function (req, res) {
    happyiSvc.removeBlack(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//设置-增加黑名单
exports.addBlack= function (req, res) {
    happyiSvc.addBlack(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//设置-实名认证
exports.authentication = function (req, res) {
    res.render("happyi/authentication");
};
//设置-是否实名认证
exports.isRealName= function (req, res) {
    happyiSvc.isRealName(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//设置-申请成为商家
exports.applyBusiness = function (req, res) {
    res.render("happyi/applyBusiness");
};
//设置-是否申请成为商家
exports.isShop= function (req, res) {
    happyiSvc.isShop(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//设置-申请商家
exports.applyShop= function (req, res) {
    happyiSvc.applyShop(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//设置-意见反馈
exports.opinion = function (req, res) {
    res.render("happyi/opinion");
};
//设置-关于我们
exports.aboutUs = function (req, res) {
    res.render("happyi/aboutUs");
};
//用户历史观看记录
exports.historyList= function (req, res) {
    happyiSvc.historyList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//今日收益
exports.todayMoney = function (req, res) {
    res.render("happyi/todayMoney");
};
//用户当日收益
exports.findDayIntegral= function (req, res) {
    happyiSvc.findDayIntegral(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//通过用户用户收益
exports.selectUserIntegral= function (req, res) {
    happyiSvc.selectUserIntegral(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//删除用户视频或游记
exports.deleteVideo= function (req, res) {
    happyiSvc.deleteVideo(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//用户协议
exports.userProtocol = function (req, res) {
    res.render("happyi/userProtocol");
};
//实名认证协议
exports.realNameProtocol = function (req, res) {
    res.render("happyi/realNameProtocol");
};
//通过用户id 视频id 增加播放历史 返回奖励信息
exports.historyAdd= function (req, res) {
    happyiSvc.historyAdd(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};